function leseProduktdetailsFuerUser(){

		var trefferbez = $('#treffer_bez');
		var treffermarke = $('#treffer_marke');
		var treffercolor = $('#treffer_color');
		var treffergroesse = $('#treffer_groesse');
		var trefferpreis = $('#treffer_preis');
		var trefferimage = $('#treffer_image');
		
		var barcode = 3;
		var productid;
alert("lade prdata");

		$.ajax({
			
			url: 'http://ambrella.dyndns.org/rightsize/LeseProduktdetailsFuerUser.php?userid='+myuser+'&barcodeid=' + barcode,
			dataType: 'jsonp',
			jsonp: 'jsoncallback',
			timeout: 5000,
			success: function(data, status){
					$.each(data, function(i,item){ 
						trefferbez.html('<p style="font-size:15px;">'+item.producttitle+'</p>').trigger('create');;
						treffermarke.html('<p style="font-size:13px;margin-top:0px">'+item.manufacturer+'</p>');
						treffercolor.html('<p style="font-size:13px;margin-top:0px">'+item.color+'</p>');
						treffergroesse.html('<p style="font-size:13px;margin-top:0px">Groesse: '+item.size_eu+'/'+ item.size_int + '</p>');
						trefferpreis.html('<p style="font-size:13px;margin-top:0px"> Preis: '+item.size_eu+'</p>');
						trefferimage.html('<img src="images/'+ item.picture + '" width="124" height="180" alt="'+item.picture+'" />');
						productid = item.productid;
						//$("#suchdetail").page();
					});
					//$.mobile.changePage();
					leseKombinationsuebersicht(productid);
				},

			error: function(){
				alert("Fehler");
			   msg.append('There was an error loading the data.2<br>');
			}
		});
		
}

function leseKombinationsuebersicht(productid){
		//var msg = $("#msg"); 

		alert("productid" + productid); 
		
		productid = 1; ///temp
		
		var schuheempf = $('#schuhe_empf');
		schuheempf.text('');
		
		$.ajax({ 
			url: 'http://ambrella.dyndns.org/rightsize/LeseKombinationsuebersicht.php?userid='+myuser+'&productid=' + productid,
			dataType: 'jsonp',
			jsonp: 'jsoncallback',
			timeout: 5000,
			success: function(data, status){
					$.each(data, function(i,item){ 
							if(item.categoryid == 17){ //schuhe
								schuheempf.append('' 
								+'<h3>Schuhe</h3>'
						
								+'<div class="ui-grid-a" style="">'
							
								+'	<div class="ui-block-a" style="margin-top:2px;margin-left:0px; width:130px">'
								+'		<dl class="meImgLeftPict2" style="margin-top:8px;margin-left:0px">'
								+'			 <dt><img src="images/nike_glimmer3_mid_sl_black_small.png"  alt="nike_glimmer3_mid_sl_black_small.png"   width="97" height="140" /></dt>'
								+'			 <dd class="UnicodSans-Medium" style="margin-top:5px">'
								+'				<img src="images/verfuegbar.png" style="font-size:12px;" width="18" height="18" alt="verfuegbar" />'
								+'			 </dd>'
								+'				<div class="UnicodSans-Medium" style="margin-top:-20px; margin-left:20px;font-size:12px" >verfuegbar</div>'
								+'		</dl> '
								+'	</div>'
								+'	<div class="ui-block-b" style="text-align:right; margin-top:2px;width:50%;">'
								+'		'
								+'		<p style="font-size:15px;">Glimmer 3 - Trainingsschuh</p>'
								+'		<p style="font-size:13px;margin-top:0px">Nike</p>'
								+'		<p style="font-size:13px;margin-top:0px">Black</p>'
								+'		<p style="font-size:13px;margin-top:0px">Groesse: 38</p>'
				
														  
								+'		<div data-role="controlgroup" data-type="horizontal" data-theme="b" style="margin-top:20px;margin-left:-5px;margin-bottom:10px">'
								+'				<a href="#" data-theme="b" data-role="button" data-icon="plus">Mag ich</a>'
								+'			</div>   '
					
												  
								+'</div>');
								
							}else if(item.categoryid == 6 || item.categoryid == 7){ //oberbekleidung
								
								
							}else if(item.categoryid ==17){ //Accessoires
								
								
							}
							
					});
			}, 
			
			error: function() { 
				//msg.append('Fehler'); 
				//msg.text('Gespeichert');
				//ladeKategoriedaten(myuser);
			} 
	
		}); 
			
			
}

